package bma.common.netty.thrift.dual.impl;

import org.apache.thrift.protocol.TMessage;
import org.apache.thrift.protocol.TProtocol;
import org.jboss.netty.channel.Channel;

import bma.common.netty.SupportedNettyChannel;
import bma.common.netty.thrift.core.NettyThriftConfig;
import bma.common.netty.thrift.dual.NTSResponse;

public class NTSResponseImpl implements NTSResponse, SupportedNettyChannel {

	private Channel channel;

	private TMessage message;

	private NettyThriftConfig config;

	private TProtocol inputProtocol;

	public TMessage getMessage() {
		return message;
	}

	public void setMessage(TMessage message) {
		this.message = message;
	}

	public NettyThriftConfig getConfig() {
		return config;
	}

	public void setConfig(NettyThriftConfig config) {
		this.config = config;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	public void setInputProtocol(TProtocol inputProtocol) {
		this.inputProtocol = inputProtocol;
	}

	@Override
	public Channel getChannel() {
		return channel;
	}

	@Override
	public TMessage getHeader() {
		return message;
	}

	@Override
	public TProtocol getInputProtocol() {
		return inputProtocol;
	}

}
